package networking;

import java.io.IOException;



public class MultiPlayer{
	public Thread comms1;
	public Thread comms2;
	private Reciever reciever;	
	private Sender sender;
	private Protocol protocol;
	
	public MultiPlayer(int portNum, String opponetHostname){
		try {
			reciever = new Reciever(portNum);
		} catch (IOException e1) {
			e1.printStackTrace();
		}
		try {
			sender = new Sender(portNum, opponetHostname);
		} catch (IOException e) {
			e.printStackTrace();
		}
		protocol = new Protocol();
		new Thread(reciever).start();		
		new Thread(sender).start();		
		
	}
	
	public void send(String s){		
		//String message = protocol(s);		
		//sender.setMessage(message);		
	}
	
	
	
}
